<!DOCTYPE html>
<html lang="zh-CN">
@include('/base.head')
<body>
@include('/business.topNav')
<div class="container-fluid">
    <div class="row">
        @extends('business.leftNav')
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h2 class="page-header">我的收入 | <small>总计金额：{{$nowMoney}} 元</small></h2>
            @if(session('__Ajax_RedirectFunc_status') == true)
                <div>
                    <div class="alert alert-success alert-dismissible fade in" role="alert">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                        <h3>成功</h3>
                        <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
                        <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
                    </div>
                </div>
            @endif
            @if(session('__Ajax_RedirectFunc_status') === false)
                <div >
                    <div class="alert alert-danger alert-dismissible fade in" role="alert">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                        <h3>失败</h3>
                        <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
                        <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
                    </div>
                </div>
            @endif
            <div class="panel-body" >
                <table class="table table-responsive table-condensed table-hover table-striped">
                    <thead>
                    <tr>
                        <th>下单时间</th>
                        <th>商品样图</th>
                        <th>商品名称</th>
                        <th>商品介绍</th>
                        <th>上架时间</th>
                        <th>商品价格</th>
                        <th>收件人</th>
                        <th>联系方式</th>
                        <th>收件地址</th>
                        <th>订单状态</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($moneyData as $data)
                        <tr>
                            <td>{{$data->order_time}}</td>
                            <td>
                                <img style="width: 100px;height: 100px" src="/images/{{$data->goods_image}}">
                            </td>
                            <td>{{$data->goods_name}}</td>
                            <td>{{$data->goods_info}}</td>
                            <td>{{$data->goods_time}}</td>
                            <td>{{$data->goods_price}}元</td>
                            <td>{{$data->user_name}}</td>
                            <td>{{$data->user_phone}}</td>
                            <td>{{$data->user_address}}</td>
                            <td>{{$data->status_name}}</td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
                <ul class="list text-center">
                    {{$moneyData->links()}}
                </ul>
            </div>
        </div>
    </div>
</div>
</body>
</html>